<!DOCTYPE html>

<html lang="zh-Hans">
  <head>
    <meta charset="utf-8" />
    <meta name="author" content="rogepi" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="/style.css" />
    <script src="/vue.global.js"></script>
    <title>computed.html</title>
  </head>

  <body>
    <div id="" class="demo"></div>
    <script>

      const count = ref(1);
      const plusOne = computed(() => count.value + 1);

      console.log(plusOne.value); // 2

      plusOne.value++; // error
    </script>
  </body>
</html>
